package com.powernode.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
    * 交易历史记录表
    */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "t_tran_history")
public class TranHistory {
    /**
     * 主键，自动增长，交易记录ID
     */
    @TableId(value = "id", type = IdType.INPUT)
    private Integer id;

    /**
     * 交易ID
     */
    @TableField(value = "tran_id")
    private Integer tranId;

    /**
     * 交易阶段
     */
    @TableField(value = "stage")
    private Integer stage;

    /**
     * 交易金额
     */
    @TableField(value = "money")
    private BigDecimal money;

    /**
     * 交易预计成交时间
     */
    @TableField(value = "expected_date")
    private Date expectedDate;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 创建人
     */
    @TableField(value = "create_by")
    private Integer createBy;
}